/*
 * @Author: 13938960424 1758142861@qq.com
 * @Date: 2023-10-24 10:48:47
 * @LastEditors: 13938960424 1758142861@qq.com
 * @LastEditTime: 2023-10-24 10:56:20
 * @FilePath: /sjf/new-xshell/advanced_IO/bind_test.cc
 * @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
 */
#include <iostream>
#include <functional>
#include <string>
#include <unistd.h>

void Print(const std::string& str,int age)
{
    std::cout << "Nihao:" << str << "age:" << age << std::endl;
}

int main()
{
    auto func = std::bind(Print,"yinxiong",std::placeholders::_1);
    // std::string str = "sjf";
    // Print(str,21);
    func(22);
    return 0;
}